﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddJob.aspx.cs" Inherits="admin_AddJob" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body leftmargin="5" topmargin="5">
    <form id="form1" runat="server">
    <div>
        <table cellpadding="1" cellspacing="1" style="width: 90%">
            <tr>
                <td align="center" background="../images/Snap1.jpg" colspan="2" style="font-weight: bold;
                    font-size: 14px; color: black">
                    新 建 职 位</td>
            </tr>
            <tr>
                <td align="center" colspan="2" style="font-weight: bold; font-size: 14px; color: #385fad">
                    <table bgcolor="#000000" cellpadding="1" cellspacing="1" style="width: 60%">
                        <tr>
                            <td bgcolor="#ffffff" style="font-size: 12px; width: 25%; color: black">
                                职位名称：</td>
                            <td align="left" bgcolor="#ffffff" style="width: 75%">
                                <asp:TextBox ID="txtJob" runat="server" Width="80%"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td background="../images/Snap1.jpg" colspan="2">
                                <asp:Button ID="btnNewCreate" runat="server" Font-Size="12px" OnClick="btnNewCreate_Click"
                                    OnClientClick="return checkfrm()" Text="新建" />
                                <asp:Button ID="btnBack" runat="server" CausesValidation="False" Font-Size="12px" Text="返回" PostBackUrl="~/admin/JobList.aspx" /></td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>

<script type="text/javascript">
    function checkfrm()
    {
        if(document.getElementById('txtJob').value=='')
        {
            alert('职位名称不能为空！');
            return false;
        }
        return true;
    }
</script>

